package com.snopy.collection.list.arraylist;

import lombok.extern.slf4j.Slf4j;

import java.util.*;

/**
 * @author snopy
 * @version 1.0.0
 * @classname DemoArrayList
 * @description
 * @email 77912204@qq.com
 * @date 2022/07/29 10:42
 */
@Slf4j
public class DemoArrayList {
    public static void main(String[] args) {
        List<String> arrayList = new ArrayList<>();
        List<String> linkedList = new LinkedList<>();
        Set<String> hashSet = new HashSet<>(arrayList);
        Set<String> treeSet = new TreeSet<>(linkedList);
        List<String> list1 = new ArrayList<>(treeSet);
        Set<String>  set2 = new HashSet<>(treeSet);
    }
}
